package ar.com.utn.openqsb.lip.ui;

import javax.swing.JTabbedPane;

import org.jvnet.lafwidget.tabbed.DefaultTabPreviewPainter;
import org.jvnet.lafwidget.utils.LafConstants.TabOverviewKind;

public class TabPreviewPainter extends DefaultTabPreviewPainter {
	protected TabOverviewKind tabOverviewKind;

	public void setTabOverviewKind(TabOverviewKind tabOverviewKind) {
		this.tabOverviewKind = tabOverviewKind;
	}

	@Override
	public TabOverviewKind getOverviewKind(JTabbedPane tabPane) {
		if (tabOverviewKind == null)
			return super.getOverviewKind(tabPane);
		return tabOverviewKind;
	}
}